"""
数据库基类
"""
from sqlalchemy.ext.declarative import declarative_base

# 创建基类
Base = declarative_base()

# 导入所有模型，确保它们被注册
# 这样Alembic才能检测到所有的模型
from app.models.user import AdminUser, Role  # noqa
from app.models.content import (  # noqa
    Banner, ProductCategory, Product, NewsCategory,
    News, Case, Solution, Job
)
from app.models.interaction import Message, Resume  # noqa
from app.models.system import SiteSetting, VisitLog  # noqa

